﻿namespace ProductCollector {
    public class SiteSearcherFactory {
        private SiteSearcherFactory() {

        }
        public static ISiteSearcher CreateSearcher(string siteName) {
            switch (siteName) {
                case SitesName.AEIOMEDSITE:
                    return new AeiomedSearcher();
                case SitesName.AMAZON:
                    return new AmazonSearcher();
                case SitesName.EBAY:
                    return new EbaySearcher();
                case SitesName.CPAP:
                    return new CpapSearcher();
                case SitesName.WAYFAIR:
                    return new WayfairSearcher();
                case SitesName.WIZE:
                    return new WizeSearcher();
                case SitesName.EASYBREATHE:
                    return new EasyBreatheSearcher();
                case SitesName.WALTERDRAKE:
                    return new WalterDrakeSearcher();
                case SitesName.WALMART:
                    return new WalmartSearcher();
                default:
                    return null;
            }
        }
    }
}
